package com.punai.evaluationSystem.costDataEvalute.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.punai.evaluationSystem.costDataEvalute.bo.CostDataEvaluteBo;
import com.punai.evaluationSystem.costDataEvalute.domain.EvaluationResults;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * resultsMapper接口
 *
 * @author tj
 * @date 2023-04-25
 */
public interface EvaluationResultsMapper extends BaseMapper<EvaluationResults>
{
    /**
     * 查询results
     *
     * @param id results主键
     * @return results
     */
    public EvaluationResults selectEvaluationResultsById(String id);

    /**
     * 查询results列表
     *
     * @param evaluationResults results
     * @return results集合
     */
    public List<EvaluationResults> selectEvaluationResultsList(EvaluationResults evaluationResults);
    public List<EvaluationResults> selectEvaluationResults(CostDataEvaluteBo  bo);


    /**
     * 删除results
     *
     * @param id results主键
     * @return 结果
     */
    public int deleteEvaluationResultsById(String id);

    /**
     * 批量删除results
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteEvaluationResultsByIds(String[] ids);

    /**
     * 修改是否保存资产库
     * @param resultIds
     * @return
     */
    public int updateResultsSrByIdIn(@Param("resultIds") List<String> resultIds, @Param("isassets") String isassets);

    public List<CostDataEvaluteBo> selectCleanData(CostDataEvaluteBo bo);

    public List<CostDataEvaluteBo> selectCleanDataEvaluteList(CostDataEvaluteBo bo);

    public List<CostDataEvaluteBo> initTableDetailInfoData(CostDataEvaluteBo bo);

    List<EvaluationResults> findAllByCode(Map<String, Object> beanToMap);
}
